body {
  perspective: 1400px;
}
.trans_box {
  position: relative;
  width: 350px;
  margin: 200px auto;
  transform-style: preserve-3d;
  animation: trans 24s linear 0.3s infinite;
  background: url(dog.jpg) no-repeat;
  background-size: 300px 200px;
}
.trans_box:hover {
  animation-play-state: paused;
}
.trans_box div[class^="girl"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.trans_box div[class^="girl"] img {
  display: block;
  width: 350px;
}
.trans_box .girl0 {
  transform: rotateY(0) translateZ(400px);
}
.trans_box .girl1 {
  transform: rotateY(60deg) translateZ(400px);
}
.trans_box .girl2 {
  transform: rotateY(120deg) translateZ(400px);
}
.trans_box .girl3 {
  transform: rotateY(180deg) translateZ(400px);
}
.trans_box .girl4 {
  transform: rotateY(240deg) translateZ(400px);
}
.trans_box .girl5 {
  transform: rotateY(300deg) translateZ(400px);
}
@keyframes trans {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(360deg);
  }
}
